import java.util.Scanner;

/**
 * Created with IntelliJ IDEA
 * Description:
 * User: Administrator
 * Data: 2023 - 11 - 21
 * Time: 14:37
 */
//牛客 分解因数
public class Solution20 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        // 注意 hasNext 和 hasNextLine 的区别
        while (in.hasNextInt()) { // 注意 while 处理多个 case
            int n = in.nextInt();
            int num = n;
            StringBuilder stringBuilder = new StringBuilder();
            stringBuilder.append(n + " = ");
            //List<String> list = new ArrayList();
            int i = 2;
            while(num != 1) {
                if(num % i == 0) {
                    stringBuilder.append(i);
                    num /= i;
                    if(num != 1) {
                        stringBuilder.append(" * ");
                    }
                }else {
                    i++;
                }
            }
            System.out.println(stringBuilder);
        }
    }
}
